//
//  Focus.m
//  fGeekApp
//
//  Created by Administrator on 15/3/9.
//  Copyright (c) 2015年 cwx. All rights reserved.
//

#import "Focus.h"

@implementation Focus

-(Focus *)initFocusInstanceByDict:(NSDictionary *)dict{
    
    if (self = [super init]) {
        
        self.focusID = [[dict valueForKey:@"focus_id"] integerValue];
        self.userID = [[dict valueForKey:@"user_id"]integerValue];
        self.goodsID = [[dict valueForKey:@"goods_id"]integerValue];
        self.goodsName = [dict valueForKey:@"goods_name"];
        self.goodsPrice = [[dict valueForKey:@"goods_price"] floatValue];
        self.goodsImagePath = [dict valueForKey:@"goods_imagePath"];
        self.goodsContentBody = [dict valueForKey:@"goods_content"];
        self.goodsSaleCount = [[dict valueForKey:@"goods_saleCount"] integerValue];
        self.focusCount = [[dict valueForKey:@"focus_count"]integerValue];
        
    }
    return self;
}

+(Focus *)getFocusInstanceByDict:(NSDictionary *)dict{
    return [[self alloc]initFocusInstanceByDict:dict];
}


@end
